package be;

import util.JSONObject;

/**
 *
 * @author Dikas
 */
public class RespuestaSW {
    
    private WsData objWsData;

    public RespuestaSW() {
    }

    public WsData getObjWsData() {
        return objWsData;
    }

    public void setObjWsData(WsData objWsData) {
        this.objWsData = objWsData;
    }
    
    public void toObject(String json){
        try {            
            JSONObject obj = new JSONObject(json);
            WsData wsData = new WsData();            
            wsData.toObject(obj.getJSONObject("wsdata").toString());
            setObjWsData(wsData);
        } catch (Exception e) {
            System.out.println("Error: " + e.getMessage());
            e.printStackTrace();
        }
    }
    
}
